package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.domain.NewsContent;
import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface INewsService {
    PageInfo<News> listAll(QueryObject qo);

    News getById(Long id);

    Integer queryCollectCount(Long newsId);

    void updateCollectCount(int collectCount, Long newsId);

    NewsContent getContentByNewsId(Long id);

    void saveOrUpdate(News entity);
}
